package com.imoocchapterone;

import android.support.annotation.Nullable;

import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.Promise;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.WritableMap;

/**
 * @Title:ImageCrop
 * @Package:com.imoocchapterone
 * @Description:选择剪切图片的接口
 * @Auther:YJH
 * @Email:yuannunhua@gmail.com
 * @Date:2018/6/1415:28
 */
public interface ImageSelector {

    /**
     * @param errorCallback
     * @param successCallback
     */
    void chooseImgCallback(Callback successCallback, Callback errorCallback);

    /**
     * @param promise
     */
    void chooseImgPromise(Promise promise);


    void sendEventMethod(String eventName, @Nullable WritableMap params);
    void sendEventMethod(ReactContext reactContext,String eventName, @Nullable WritableMap params);
}
